Any stream with an internal buffer should override this method and provide a much more efficient version that writes to the buffer directly , avoiding the extra array allocation on every call 所有具有內(nèi)部緩沖區(qū)的流都應(yīng)重寫此方法,提供一個(gè)直接寫入緩沖區(qū)的有效得多的版本,以避免每次調(diào)用時(shí)都要進(jìn)行額外的數(shù)組分配。
Any stream with an internal buffer should override this method and provide a much more efficient version that reads the buffer directly , avoiding the extra array allocation on every call 所有具有內(nèi)部緩沖區(qū)的流都應(yīng)重寫此方法,并提供一個(gè)可以直接讀取緩沖區(qū)的更為有效的版本,從而避免每次調(diào)用都要進(jìn)行額外的數(shù)組分配。